package chat.whiteboard.components.canvas;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import chat.whiteboard.WhiteBoardController;


public class CanvasMouseAction extends MouseAdapter {
	ICanvas canvas;

	public CanvasMouseAction(ICanvas canvas) {
		super();
		this.canvas = canvas;
	}

	public void mousePressed(MouseEvent e) {
		canvas.mouseDown(e.getX(), e.getY());
	}

	public void mouseReleased(MouseEvent e) {
		canvas.mouseUp(e.getX(), e.getY());
	}
	public void mouseMoved(MouseEvent e){
		
	}
}
